package icom.icss.entity;

/**
 * 1 public
 * 2 实现序列化接口
 * 3 属性私有化
 * 4 提供无参构造
 * 5 公告set get
 *
 */
public class User {
    private Integer id;
    private String username;
    private String password;



    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }

    public User() {
    }
    public User(String username, String password) {

        this.username = username;
        this.password = password;
    }
    public User(Integer id, String username, String password) {
        this.id = id;
        this.username = username;
        this.password = password;
    }



    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
